package gew.table;

public class TableMeasure {
    
    public enum OrderBy {
        NONE,
        ASC,
        DESC
    }
    
    private final String factTableField;
    private final String title;
    private final boolean showInTable;
    private final boolean showInBalloon;
    private final int index;
    private final OrderBy orderBy;
    private int colspan;

    public TableMeasure(int index, String factTableField, String title, boolean showInTable, boolean showInBalloon, OrderBy orderBy) {
        this.index = index;
        this.factTableField = factTableField;
        this.title = title;
        this.showInTable = showInTable;
        this.showInBalloon = showInBalloon;
        this.orderBy = orderBy;
        colspan = 1;
    }

    public String getFactTableField() {
        return factTableField;
    }

    public String getTitle() {
        return title;
    }

    public boolean isShowInTable() {
        return showInTable;
    }

    public boolean isShowInBalloon() {
        return showInBalloon;
    }

    public int getIndex() {
        return index;
    }

    public int getColspan() {
        return colspan;
    }

    void setColspan(int colspan) {
        this.colspan = colspan;
    }

    public OrderBy getOrderBy() {
        return orderBy;
    }
    
}
